home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
STBA2.ZIP
/
CHILD.FRM
next >
Wrap
Text File
|
1993-03-16
|
2KB
|
57 lines
VERSION 2.00
Begin Form fmChild
Caption = "StBar Example Child Form"
Height = 2790
Left = 1050
LinkMode = 1 'Source
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 2385
ScaleWidth = 5925
Top = 1125
Width = 6045
Begin CommandButton Command3
Caption = "toggle &visible property"
Height = 495
Left = 600
TabIndex = 2
Top = 1680
Width = 4695
End
Begin CommandButton Command2
Caption = "show &second message"
Height = 495
Left = 600
TabIndex = 1
Top = 960
Width = 4695
End
Begin CommandButton Command1
Caption = "show &first message"
Height = 495
Left = 600
TabIndex = 0
Top = 240
Width = 4695
End
End
Option Explicit
Declare Sub StBarVisible Lib "STBAR.VBX" (ByVal hWnd As Integer, ByVal iVisible As Integer)
Sub Command1_Click ()
fmMain.sbMain.Caption = "first message"
End Sub
Sub Command2_Click ()
fmMain.sbMain.Caption = "second message"
End Sub
Sub Command3_Click ()
Dim iVisible As Integer
iVisible = Not fmMain.sbMain.Visible
StBarVisible fmMain.hWnd, iVisible
fmMain.piStBar.Visible = iVisible
End Sub